package com.mallcai.bigdata.ladon.service.report.impl;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-20 08:30
 */
public class ReportQueryConstants {


    public static final String KEY_REPORT = "key_report";

    public static final String KEY_SQL = "key_sql";

    public static final String KEY_REPORT_SQL = "key_report_sql";

    public static final String KEY_REPORT_SQL_COLUMNS = "key_report_sql_columns";

    public static final String KEY_ALL_PARAM_NAME = "key_all_param_name";

    public static final String KEY_QUERY_FIELDS = "KEY_QUERY_FIELDS";

    public static final String KEY_DATA_SOURCE = "key_data_source";

    public static final String KEY_INNER_FIELD_LIST = "inner_field_list";

    public static final String PARAM_NAME_FORMAT = "#%s#"; // sql的参数匹配模板

    public static final String PARAM_PLACE_HOLDER = "?"; // sql参数占位符

    public static final String KEY_IS_CACHE_RESULT  = "key_is_cache_result"; // 是否为缓存结果
    public static final String KEY_RESULT_CACHE_KEY = "key_result_cache_key"; // 缓存的key
    public static final String KEY_IS_FLOW_OFF = "key_is_flow_off"; // 流量关闭是否关闭
    public static final String KEY_IS_STATIC_REPORT = "key_is_static_report"; // 是否静态报表


    public static final String CACHE_GET_BY_ID        = "report.getById-";
    public static final String CACHE_GET_ID_BY_CODE   = "report.getIdByCode-";
    public static final String CACHE_GET_CODE_BY_ID   = "report.getCodeById-";
    public static final String CACHE_GET_COLUMNS      = "report.getReportColumns-";
    public static final String CACHE_GET_QUERY_FIELDS = "report.getQueryFields-";
    public static final String CACHE_GET_SQL          = "report.getSqlById-";


}
